import App from './App.vue'
import SubChangeHouseActivity from './components/activity/subChangeHouseActivity.vue'
import SubDiscountActivity from './components/activity/subDiscountActivity.vue'
import SignedChangeHouseActivity from './components/activity/signedChangeHouseActivity.vue'
import SubRetreatActivity from './components/activity/subRetreatActivity.vue'
import SignedDiscountActivity from './components/activity/signedDiscountActivity.vue'
import SignedCheckOutActivity from './components/activity/signedCheckOutActivity.vue'
import SubDelaySigned from './components/activity/subDelaySigned.vue'
import DeferredPaymentActivity from './components/activity/deferredPaymentActivity.vue'
import SubAndSigChangeName from './components/activity/subAndSigChangeName.vue'
import ProgrammeInvalid from './components/activity/programmeInvalid.vue'
import PriceProgramme from './components/activity/priceProgramme.vue'
import CustomerLevel from './components/report/customerLevel.vue'
import SalesReport from './components/report/salesReport.vue'
import ReportPage from './components/report/reportPage.vue'
import DailyReport from './components/report/dailyReport.vue'
import PmoGraphical from './components/pmo/pmoGraphical.vue'
import Questionnaire from './components/questionnaire/questionnaire.vue'
export default [
{
		path: '/app',
		component: App,
		children: [
			{//认购换房
				path: '/subChangeHouseActivity/:busKey/:processId/:userId/:taskId',
				component: SubChangeHouseActivity
			},
			{ //认购折扣审批
				path: '/subDiscountActivity/:busKey/:processId/:userId/:taskId',
				component: SubDiscountActivity
			},
			{ //签约换房
				path: '/signedChangeHouseActivity/:busKey/:processId/:userId/:taskId',
				component: SignedChangeHouseActivity
			},
			{//退认购
				path: '/subRetreatActivity/:busKey/:processId/:userId/:taskId',
				component: SubRetreatActivity
			},
			{	//签约折扣审批
				path: '/signedDiscountActivity/:busKey/:processId/:userId/:taskId',
				component: SignedDiscountActivity
				
			},
			{//签约退房审批
				path:'/signedCheckOutActivity/:busKey/:processId/:userId/:taskId',
				component: SignedCheckOutActivity
				
			},
			{//延期签约 15d, 30d ,30d 以上
				path:'/subDelaySigned/:busKey/:processId/:userId/:taskId',
				component:SubDelaySigned
			},
			{ //应收款延期 15d, 30d ,30d 以上
				path:'/deferredPayment/:busKey/:processId/:userId/:taskId',
				component:DeferredPaymentActivity
			},
			{ //认购更名，或者是签约更名
				path:'/subAndSigChangeName/:busKey/:processId/:userId/:taskId',
				component:SubAndSigChangeName
			},
			{ //价格方案无效审批
				path:'/programmeInvalid/:busKey/:processId/:userId/:taskId',
				component:ProgrammeInvalid
			},
			{
				path:'/priceProgramme/:busKey/:processId/:userId/:taskId',
				component:PriceProgramme
			},
			{  //客戶等級
				path:'/report/customerLevel/:userticket/:userid',
				component:CustomerLevel
			},
			{
				path:'/report/salesReport/:userticket/:userid',
				component:SalesReport
			},
			{
				//path: '/report/dailyReport/:userticket/:userId',
				path: '/report/dailyReport',
				component: DailyReport
			},
			{
				path:'/report/page',
				component:ReportPage
			},
			{
				path:'/report/pmoGraphical/:userid',
				component:PmoGraphical
			},{
				//问卷入口
				path:'/questionnaire/questionnaire/:id',
				name:'questionnaire',
				component:Questionnaire
			}
		]
},{
		path: '*', //跳转主入口
        redirect: '/app'
}]